<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>编辑编码类型</title>
    <link rel="stylesheet" href="${base}/static/res/manage/css/common.css" >
    <link rel="stylesheet" href="${base}/static/res/manage/css/ec.css" >
    <link rel="stylesheet" href="${base}/static/res/manage/css/list.css" >
    <style type="text/css">
        .tablist{min-height:270px;}
        .codeType{ime-mode: disabled; text-transform: uppercase;}
    </style>
    <script type="text/javascript" src="${base}/static/res/plugin/jquery/jquery-1.11.1.min.js"></script>
    <script type="text/javascript" src="${base}/static/res/plugin/validator/jquery.validate.min.js"></script>
    <script type="text/javascript" src="${base}/static/res/admin/js/common.js"></script>
    <script type="text/javascript">
        $(function () {
            $("#inputForm").validate({
                rules: {
                    codeType: {
                        required: true,
                        maxlength: 60,
                        remote: {
                            url:"exist.jhtml?id=${stdCodeType.id}",
                            cache:false
                        }
                    },
                    codeTypeName:{
                        required: true,
                        maxlength: 30
                    },
                    codeTypeRemark: {
                        maxlength: 100
                    }
                },
                messages:{
                    codeType:{
                        maxlength:"最多只能输入60个字符",
                        remote:"此类型编码已存在"
                    },
                    codeTypeName:{
                        maxlength:"最多只能输入30个字符"
                    },
                    codeTypeRemark:{
                        maxlength:"最多只能输入100个字符"
                    }
                }
            });
        });
    </script>
</head>
<body>
<form id="inputForm" action="update.jhtml" method="post">
    <input type="hidden" name="id" value="${stdCodeType.id}"/>
    <div class="tab set arr">
        <h3><a href="edit.jhtml?id=${stdCodeType.id}">修改编码类型</a></h3>
        <div class="tablist message">
            <table cellpadding="0" cellspacing="0">
                <tr>
                    <td><label>类型编码<span class="cred">*</span></label></td>
                    <td>
                        <input type="text" name="codeType" class="codeType" value="${stdCodeType.codeType}"/>
                    </td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                    <td><label>类型名称<span class="cred"> * </span></label></td>
                    <td>
                        <input type="text" name="codeTypeName" value="${stdCodeType.codeTypeName}"/>
                    </td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                    <td><label>类型描述</label></td>
                    <td>
                        <input name="codeTypeRemark" value="${stdCodeType.codeTypeRemark}">
                    </td>
                    <td></td>
                    <td></td>
                </tr>
            </table>
            <p class="save">
                <input type="submit" value="保存" class="red">
            </p>
        </div>
    </div>
</form>
</body>
</html>